﻿using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Net.Mime;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace GurLoader.Util
{
    [ExcludeFromCodeCoverage]
    public class ApplicationWrapper : IApplication
    {
        private Application CurrentApplication { get; set; }

        public ApplicationWrapper(Application currentApplication)
        {
            CurrentApplication = currentApplication;
        }

        public Window MainWindow
        {
            get { return CurrentApplication.MainWindow; }
        }

        public void Shutdown()
        {
            CurrentApplication.Shutdown();
        }

        public void Shutdown(int exitCode)
        {
            CurrentApplication.Shutdown(exitCode);
        }
    }
}
